import http from './http'

export const queryAllMovie = (params, config) => { return http.get('/api/v0/movies',{ params }, config) }

export const queryMoviesList = (params, config) => { return http.get('/api/v0/moviesList',{ params }, config) }

export const getSingleMovie = (params, config) => { return http.get(`/api/v0/movies/${params._id}`, config) }

export const getUserInfo = (params, config) => { return http.post(`/api/v0/user`, { params }, config) }

export const logout = (params, config) => { return http.post(`/api/v0/user/logout`, { params }, config) }

export const deleteMovie = (params, config) => { return http.delete(`/api/v0/moviesList/delete`, { params }, config) }
